namespace SimpleWebServices.Web.Mvc
{
    using System.Web.Mvc;
    using SimpleWebServices;
    using Xunit;

    public sealed class EmptyHtmlControllerFacts
    {
        [Fact]
        public void typedef()
        {
            Assert.True(new ObjectExpectations<EmptyHtmlController>()
                .DerivesFrom<Controller>()
                .IsConcreteClass()
                .IsSealed()
                .HasDefaultConstructor()
                .IsDecoratedWith<InternalServerErrorAttribute>()
                .IsDecoratedWith<CacheControlAttribute>()
                .IsDecoratedWith<ContentLanguageAttribute>()
                .IsDecoratedWith<ContentMD5Attribute>()
                .Allow("GET, HEAD, OPTIONS")
                .Result);
        }

        [Fact]
        public void ctor()
        {
            Assert.NotNull(new EmptyHtmlController());
        }

        [Fact]
        public void Representation()
        {
            Assert.IsType<EmptyHtmlResult>(new EmptyHtmlController().Representation());
        }
    }
}